home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / ICPAppSource+ICprogKit / ICAppSourceKit 1.3.sit / ICAppSourceKit1.3 / ICInstall.p < prev    next >
MacBinary  |  1995-11-07  |  9.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ICInstall.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Nov 7 10:19:07 1995, modified Tue Nov 7 10:19:07 1995, creator 'CWIE', type ASCII, 9256 bytes "ICInstall.p" , at 0x24a8 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 49 43 49 6e 73 74 | 61 6c 6c 2e 70 00 00 00 |..ICInst|all.p...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 24 28 00 | 00 01 9a ac c5 29 6b ac |.....$(.|.....)k.|
|00000060| c5 29 6b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.)k.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 93 e2 00 00 |........|........|
|00000080| 75 6e 69 74 20 49 43 49 | 6e 73 74 61 6c 6c 3b 0d |unit ICI|nstall;.|
|00000090| 0d 69 6e 74 65 72 66 61 | 63 65 0d 0d 09 75 73 65 |.interfa|ce...use|
|000000a0| 73 0d 09 09 54 79 70 65 | 73 3b 0d 09 09 0d 09 70 |s...Type|s;.....p|
|000000b0| 72 6f 63 65 64 75 72 65 | 20 41 64 6a 75 73 74 49 |rocedure| AdjustI|
|000000c0| 6e 73 74 61 6c 4d 65 6e | 75 20 28 6d 65 6e 75 3a |nstalMen|u (menu:|
|000000d0| 20 69 6e 74 65 67 65 72 | 29 3b 0d 09 70 72 6f 63 | integer|);..proc|
|000000e0| 65 64 75 72 65 20 44 6f | 49 6e 73 74 61 6c 6c 4d |edure Do|InstallM|
|000000f0| 65 6e 75 20 28 6d 65 6e | 75 2c 20 69 74 65 6d 3a |enu (men|u, item:|
|00000100| 20 69 6e 74 65 67 65 72 | 29 3b 0d 09 66 75 6e 63 | integer|);..func|
|00000110| 74 69 6f 6e 20 49 6e 69 | 74 69 61 6c 69 7a 65 43 |tion Ini|tializeC|
|00000120| 6f 6d 70 6f 6e 65 6e 74 | 49 6e 73 74 61 6c 6c 61 |omponent|Installa|
|00000130| 74 69 6f 6e 3a 20 4f 53 | 45 72 72 3b 0d 0d 69 6d |tion: OS|Err;..im|
|00000140| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 0d 0d 09 75 |plementa|tion...u|
|00000150| 73 65 73 0d 09 09 46 6f | 6c 64 65 72 73 2c 20 43 |ses...Fo|lders, C|
|00000160| 6f 6d 70 6f 6e 65 6e 74 | 73 2c 20 52 65 73 6f 75 |omponent|s, Resou|
|00000170| 72 63 65 73 2c 20 44 69 | 61 6c 6f 67 73 2c 0d 0d |rces, Di|alogs,..|
|00000180| 09 09 49 43 54 79 70 65 | 73 2c 20 49 43 43 41 50 |..ICType|s, ICCAP|
|00000190| 49 2c 20 0d 0d 09 09 49 | 43 4d 69 73 63 53 75 62 |I, ....I|CMiscSub|
|000001a0| 73 2c 20 49 43 47 6c 6f | 62 61 6c 73 2c 20 49 43 |s, ICGlo|bals, IC|
|000001b0| 53 74 61 6e 64 61 72 64 | 46 69 6c 65 2c 20 49 43 |Standard|File, IC|
|000001c0| 44 69 61 6c 6f 67 73 2c | 20 49 43 53 75 62 73 2c |Dialogs,| ICSubs,|
|000001d0| 20 49 43 41 50 49 3b 0d | 0d 09 63 6f 6e 73 74 09 | ICAPI;.|..const.|
|000001e0| 09 09 28 2a 20 77 68 79 | 20 61 72 65 6e 27 74 20 |..(* why| aren't |
|000001f0| 74 68 65 73 65 20 69 6e | 20 43 6f 6d 70 6f 6e 65 |these in| Compone|
|00000200| 6e 74 73 2e 70 3f 3f 3f | 20 2a 29 0d 09 09 72 65 |nts.p???| *)...re|
|00000210| 67 69 73 74 65 72 43 6d | 70 47 6c 6f 62 61 6c 20 |gisterCm|pGlobal |
|00000220| 3d 20 31 3b 0d 09 09 72 | 65 67 69 73 74 65 72 43 |= 1;...r|egisterC|
|00000230| 6d 70 4e 6f 44 75 70 6c | 69 63 61 74 65 73 20 3d |mpNoDupl|icates =|
|00000240| 20 32 3b 0d 09 09 72 65 | 67 69 73 74 65 72 43 6f | 2;...re|gisterCo|
|00000250| 6d 70 41 66 74 65 72 20 | 3d 20 34 3b 0d 0d 09 76 |mpAfter |= 4;...v|
|00000260| 61 72 0d 09 09 61 70 70 | 6c 69 63 61 74 69 6f 6e |ar...app|lication|
|00000270| 5f 76 65 72 73 69 6f 6e | 3a 20 6c 6f 6e 67 49 6e |_version|: longIn|
|00000280| 74 3b 0d 09 09 69 6e 73 | 74 61 6c 6c 65 64 5f 76 |t;...ins|talled_v|
|00000290| 65 72 73 69 6f 6e 3a 20 | 6c 6f 6e 67 49 6e 74 3b |ersion: |longInt;|
|000002a0| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 47 65 74 56 |...funct|ion GetV|
|000002b0| 65 72 73 69 6f 6e 46 72 | 6f 6d 52 65 73 46 69 6c |ersionFr|omResFil|
|000002c0| 65 3a 20 6c 6f 6e 67 49 | 6e 74 3b 0d 09 09 76 61 |e: longI|nt;...va|
|000002d0| 72 0d 09 09 09 76 65 72 | 73 68 3a 20 56 65 72 73 |r....ver|sh: Vers|
|000002e0| 52 65 63 48 6e 64 6c 3b | 0d 09 62 65 67 69 6e 0d |RecHndl;|..begin.|
|000002f0| 09 09 47 65 74 56 65 72 | 73 69 6f 6e 46 72 6f 6d |..GetVer|sionFrom|
|00000300| 52 65 73 46 69 6c 65 20 | 3a 3d 20 30 3b 0d 09 09 |ResFile |:= 0;...|
|00000310| 76 65 72 73 68 20 3a 3d | 20 56 65 72 73 52 65 63 |versh :=| VersRec|
|00000320| 48 6e 64 6c 28 47 65 74 | 31 52 65 73 6f 75 72 63 |Hndl(Get|1Resourc|
|00000330| 65 28 27 76 65 72 73 27 | 2c 20 31 29 29 3b 0d 09 |e('vers'|, 1));..|
|00000340| 09 69 66 20 76 65 72 73 | 68 20 3c 3e 20 6e 69 6c |.if vers|h <> nil|
|00000350| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 47 | then be|gin....G|
|00000360| 65 74 56 65 72 73 69 6f | 6e 46 72 6f 6d 52 65 73 |etVersio|nFromRes|
|00000370| 46 69 6c 65 20 3a 3d 20 | 6c 6f 6e 67 49 6e 74 28 |File := |longInt(|
|00000380| 76 65 72 73 68 5e 5e 2e | 6e 75 6d 65 72 69 63 56 |versh^^.|numericV|
|00000390| 65 72 73 69 6f 6e 29 3b | 0d 09 09 65 6e 64 3b 20 |ersion);|...end; |
|000003a0| 28 2a 20 69 66 20 2a 29 | 0d 09 65 6e 64 3b 0d 0d |(* if *)|..end;..|
|000003b0| 09 66 75 6e 63 74 69 6f | 6e 20 47 65 74 52 65 67 |.functio|n GetReg|
|000003c0| 69 73 74 65 72 65 64 56 | 65 72 73 69 6f 6e 3a 20 |isteredV|ersion: |
|000003d0| 6c 6f 6e 67 49 6e 74 3b | 0d 09 09 76 61 72 0d 09 |longInt;|...var..|
|000003e0| 09 09 69 6e 73 74 3a 20 | 43 6f 6d 70 6f 6e 65 6e |..inst: |Componen|
|000003f0| 74 49 6e 73 74 61 6e 63 | 65 3b 0d 09 09 09 6a 75 |tInstanc|e;....ju|
|00000400| 6e 6b 3a 20 4f 53 45 72 | 72 3b 0d 09 09 09 72 65 |nk: OSEr|r;....re|
|00000410| 66 6e 75 6d 3a 20 69 6e | 74 65 67 65 72 3b 0d 09 |fnum: in|teger;..|
|00000420| 62 65 67 69 6e 0d 09 09 | 47 65 74 52 65 67 69 73 |begin...|GetRegis|
|00000430| 74 65 72 65 64 56 65 72 | 73 69 6f 6e 20 3a 3d 20 |teredVer|sion := |
|00000440| 30 3b 0d 09 09 69 66 20 | 68 61 73 5f 63 6f 6d 70 |0;...if |has_comp|
|00000450| 6f 6e 65 6e 74 73 20 74 | 68 65 6e 20 62 65 67 69 |onents t|hen begi|
|00000460| 6e 0d 09 09 09 69 6e 73 | 74 20 3a 3d 20 4f 70 65 |n....ins|t := Ope|
|00000470| 6e 44 65 66 61 75 6c 74 | 43 6f 6d 70 6f 6e 65 6e |nDefault|Componen|
|00000480| 74 28 69 6e 74 65 72 6e | 65 74 43 6f 6e 66 69 67 |t(intern|etConfig|
|00000490| 75 72 61 74 69 6f 6e 43 | 6f 6d 70 6f 6e 65 6e 74 |urationC|omponent|
|000004a0| 54 79 70 65 2c 20 69 6e | 74 65 72 6e 65 74 43 6f |Type, in|ternetCo|
|000004b0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 43 6f 6d 70 6f |nfigurat|ionCompo|
|000004c0| 6e 65 6e 74 53 75 62 54 | 79 70 65 29 3b 0d 09 09 |nentSubT|ype);...|
|000004d0| 09 69 66 20 69 6e 73 74 | 20 3c 3e 20 6e 69 6c 20 |.if inst| <> nil |
|000004e0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 72 |then beg|in.....r|
|000004f0| 65 66 6e 75 6d 20 3a 3d | 20 4f 70 65 6e 43 6f 6d |efnum :=| OpenCom|
|00000500| 70 6f 6e 65 6e 74 52 65 | 73 46 69 6c 65 28 43 6f |ponentRe|sFile(Co|
|00000510| 6d 70 6f 6e 65 6e 74 28 | 69 6e 73 74 29 29 3b 0d |mponent(|inst));.|
|00000520| 09 09 09 09 69 66 20 72 | 65 66 6e 75 6d 20 3c 3e |....if r|efnum <>|
|00000530| 20 2d 31 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 | -1 then| begin..|
|00000540| 09 09 09 09 47 65 74 52 | 65 67 69 73 74 65 72 65 |....GetR|egistere|
|00000550| 64 56 65 72 73 69 6f 6e | 20 3a 3d 20 47 65 74 56 |dVersion| := GetV|
|00000560| 65 72 73 69 6f 6e 46 72 | 6f 6d 52 65 73 46 69 6c |ersionFr|omResFil|
|00000570| 65 3b 0d 09 09 09 09 09 | 43 6c 6f 73 65 52 65 73 |e;......|CloseRes|
|00000580| 46 69 6c 65 28 72 65 66 | 6e 75 6d 29 3b 0d 09 09 |File(ref|num);...|
|00000590| 09 09 65 6e 64 3b 0d 09 | 09 09 09 6a 75 6e 6b 20 |..end;..|...junk |
|000005a0| 3a 3d 20 43 6c 6f 73 65 | 43 6f 6d 70 6f 6e 65 6e |:= Close|Componen|
|000005b0| 74 28 69 6e 73 74 29 3b | 0d 09 09 09 65 6e 64 3b |t(inst);|....end;|
|000005c0| 20 28 2a 20 69 66 20 2a | 29 0d 09 09 65 6e 64 3b | (* if *|)...end;|
|000005d0| 20 28 2a 20 69 66 20 2a | 29 0d 09 65 6e 64 3b 0d | (* if *|)..end;.|
|000005e0| 0d 09 66 75 6e 63 74 69 | 6f 6e 20 49 73 49 6e 73 |..functi|on IsIns|
|000005f0| 74 61 6c 6c 65 64 20 28 | 76 61 72 20 77 68 65 72 |talled (|var wher|
|00000600| 65 3a 20 46 53 53 70 65 | 63 29 3a 20 62 6f 6f 6c |e: FSSpe|c): bool|
|00000610| 65 61 6e 3b 0d 09 09 76 | 61 72 0d 09 09 09 65 72 |ean;...v|ar....er|
|00000620| 72 3a 20 4f 53 45 72 72 | 3b 0d 09 09 09 6e 64 78 |r: OSErr|;....ndx|
|00000630| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 09 09 09 66 6f |: intege|r;....fo|
|00000640| 75 6e 64 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |und: boo|lean;...|
|00000650| 09 63 70 62 3a 20 43 49 | 6e 66 6f 50 42 52 65 63 |.cpb: CI|nfoPBRec|
|00000660| 3b 0d 09 09 09 69 6e 66 | 6f 3a 20 46 49 6e 66 6f |;....inf|o: FInfo|
|00000670| 3b 0d 09 62 65 67 69 6e | 0d 09 09 65 72 72 20 3a |;..begin|...err :|
|00000680| 3d 20 46 69 6e 64 46 6f | 6c 64 65 72 28 6b 4f 6e |= FindFo|lder(kOn|
|00000690| 53 79 73 74 65 6d 44 69 | 73 6b 2c 20 6b 45 78 74 |SystemDi|sk, kExt|
|000006a0| 65 6e 73 69 6f 6e 46 6f | 6c 64 65 72 54 79 70 65 |ensionFo|lderType|
|000006b0| 2c 20 74 72 75 65 2c 20 | 77 68 65 72 65 2e 76 52 |, true, |where.vR|
|000006c0| 65 66 4e 75 6d 2c 20 77 | 68 65 72 65 2e 70 61 72 |efNum, w|here.par|
|000006d0| 49 44 29 3b 0d 09 09 77 | 68 65 72 65 2e 6e 61 6d |ID);...w|here.nam|
|000006e0| 65 20 3a 3d 20 47 65 74 | 41 53 74 72 69 6e 67 28 |e := Get|AString(|
|000006f0| 31 32 38 2c 20 31 32 29 | 3b 0d 09 09 69 66 20 65 |128, 12)|;...if e|
|00000700| 72 72 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |rr = noE|rr then |
|00000710| 62 65 67 69 6e 0d 09 09 | 09 65 72 72 20 3a 3d 20 |begin...|.err := |
|00000720| 48 47 65 74 46 49 6e 66 | 6f 28 77 68 65 72 65 2e |HGetFInf|o(where.|
|00000730| 76 52 65 66 4e 75 6d 2c | 20 77 68 65 72 65 2e 70 |vRefNum,| where.p|
|00000740| 61 72 49 44 2c 20 77 68 | 65 72 65 2e 6e 61 6d 65 |arID, wh|ere.name|
|00000750| 2c 20 69 6e 66 6f 29 3b | 0d 09 09 09 69 66 20 65 |, info);|....if e|
|00000760| 72 72 20 3c 3e 20 6e 6f | 45 72 72 20 74 68 65 6e |rr <> no|Err then|
|00000770| 20 62 65 67 69 6e 0d 09 | 09 09 09 66 6f 75 6e 64 | begin..|...found|
|00000780| 20 3a 3d 20 66 61 6c 73 | 65 3b 0d 09 09 09 09 6e | := fals|e;.....n|
|00000790| 64 78 20 3a 3d 20 31 3b | 0d 09 09 09 09 72 65 70 |dx := 1;|.....rep|
|000007a0| 65 61 74 0d 09 09 09 09 | 09 77 69 74 68 20 63 70 |eat.....|.with cp|
|000007b0| 62 20 64 6f 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |b do beg|in......|
|000007c0| 09 69 6f 4e 61 6d 65 50 | 74 72 20 3a 3d 20 40 77 |.ioNameP|tr := @w|
|000007d0| 68 65 72 65 2e 6e 61 6d | 65 3b 0d 09 09 09 09 09 |here.nam|e;......|
|000007e0| 09 69 6f 56 52 65 66 4e | 75 6d 20 3a 3d 20 77 68 |.ioVRefN|um := wh|
|000007f0| 65 72 65 2e 76 52 65 66 | 4e 75 6d 3b 0d 09 09 09 |ere.vRef|Num;....|
|00000800| 09 09 09 69 6f 44 69 72 | 49 44 20 3a 3d 20 77 68 |...ioDir|ID := wh|
|00000810| 65 72 65 2e 70 61 72 49 | 44 3b 0d 09 09 09 09 09 |ere.parI|D;......|
|00000820| 09 69 6f 46 44 69 72 49 | 6e 64 65 78 20 3a 3d 20 |.ioFDirI|ndex := |
|00000830| 6e 64 78 3b 0d 09 09 09 | 09 09 65 6e 64 3b 20 28 |ndx;....|..end; (|
|00000840| 2a 20 77 69 74 68 20 2a | 29 0d 09 09 09 09 09 65 |* with *|)......e|
|00000850| 72 72 20 3a 3d 20 50 42 | 47 65 74 43 61 74 49 6e |rr := PB|GetCatIn|
|00000860| 66 6f 53 79 6e 63 28 40 | 63 70 62 29 3b 0d 09 09 |foSync(@|cpb);...|
|00000870| 09 09 09 69 66 20 65 72 | 72 20 3d 20 6e 6f 45 72 |...if er|r = noEr|
|00000880| 72 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |r then b|egin....|
|00000890| 09 09 09 66 6f 75 6e 64 | 20 3a 3d 20 28 63 70 62 |...found| := (cpb|
|000008a0| 2e 69 6f 46 6c 46 6e 64 | 72 49 6e 66 6f 2e 66 64 |.ioFlFnd|rInfo.fd|
|000008b0| 54 79 70 65 20 3d 20 27 | 74 68 6e 67 27 29 20 61 |Type = '|thng') a|
|000008c0| 6e 64 20 28 63 70 62 2e | 69 6f 46 6c 46 6e 64 72 |nd (cpb.|ioFlFndr|
|000008d0| 49 6e 66 6f 2e 66 64 43 | 72 65 61 74 6f 72 20 3d |Info.fdC|reator =|
|000008e0| 20 49 43 63 72 65 61 74 | 6f 72 29 3b 0d 09 09 09 | ICcreat|or);....|
|000008f0| 09 09 65 6e 64 3b 20 28 | 2a 20 69 66 20 2a 29 0d |..end; (|* if *).|
|00000900| 09 09 09 09 09 6e 64 78 | 20 3a 3d 20 6e 64 78 20 |.....ndx| := ndx |
|00000910| 2b 20 31 3b 0d 09 09 09 | 09 75 6e 74 69 6c 20 66 |+ 1;....|.until f|
|00000920| 6f 75 6e 64 20 6f 72 20 | 28 65 72 72 20 3c 3e 20 |ound or |(err <> |
|00000930| 6e 6f 45 72 72 29 3b 0d | 09 09 09 09 69 66 20 6e |noErr);.|....if n|
|00000940| 6f 74 20 66 6f 75 6e 64 | 20 74 68 65 6e 20 62 65 |ot found| then be|
|00000950| 67 69 6e 0d 09 09 09 09 | 09 77 68 65 72 65 2e 6e |gin.....|.where.n|
|00000960| 61 6d 65 20 3a 3d 20 47 | 65 74 41 53 74 72 69 6e |ame := G|etAStrin|
|00000970| 67 28 31 32 38 2c 20 31 | 32 29 3b 0d 09 09 09 09 |g(128, 1|2);.....|
|00000980| 09 65 72 72 20 3a 3d 20 | 66 6e 66 45 72 72 3b 0d |.err := |fnfErr;.|
|00000990| 09 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|000009a0| 29 0d 09 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |)....end|; (* if |
|000009b0| 2a 29 0d 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |*)...end|; (* if |
|000009c0| 2a 29 0d 09 09 49 73 49 | 6e 73 74 61 6c 6c 65 64 |*)...IsI|nstalled|
|000009d0| 20 3a 3d 20 28 65 72 72 | 20 3d 20 6e 6f 45 72 72 | := (err| = noErr|
|000009e0| 29 3b 0d 09 65 6e 64 3b | 20 28 2a 20 49 73 49 6e |);..end;| (* IsIn|
|000009f0| 73 74 61 6c 6c 65 64 20 | 2a 29 0d 0d 09 70 72 6f |stalled |*)...pro|
|00000a00| 63 65 64 75 72 65 20 55 | 70 64 61 74 65 49 6e 73 |cedure U|pdateIns|
|00000a10| 74 61 6c 6c 65 64 56 65 | 72 73 69 6f 6e 20 28 76 |talledVe|rsion (v|
|00000a20| 61 72 20 66 73 73 3a 20 | 46 53 53 70 65 63 29 3b |ar fss: |FSSpec);|
|00000a30| 0d 09 09 76 61 72 0d 09 | 09 09 72 65 66 3a 20 69 |...var..|..ref: i|
|00000a40| 6e 74 65 67 65 72 3b 0d | 09 09 09 65 72 72 3a 20 |nteger;.|...err: |
|00000a50| 4f 53 45 72 72 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |OSErr;..|begin...|
|00000a60| 69 6e 73 74 61 6c 6c 65 | 64 5f 76 65 72 73 69 6f |installe|d_versio|
|00000a70| 6e 20 3a 3d 20 30 3b 0d | 09 09 69 66 20 49 73 49 |n := 0;.|..if IsI|
|00000a80| 6e 73 74 61 6c 6c 65 64 | 28 66 73 73 29 20 74 68 |nstalled|(fss) th|
|00000a90| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 72 65 66 20 |en begin|....ref |
|00000aa0| 3a 3d 20 48 4f 70 65 6e | 52 65 73 46 69 6c 65 28 |:= HOpen|ResFile(|
|00000ab0| 66 73 73 2e 76 52 65 66 | 4e 75 6d 2c 20 66 73 73 |fss.vRef|Num, fss|
|00000ac0| 2e 70 61 72 49 44 2c 20 | 66 73 73 2e 6e 61 6d 65 |.parID, |fss.name|
|00000ad0| 2c 20 66 73 52 64 50 65 | 72 6d 29 3b 0d 09 09 09 |, fsRdPe|rm);....|
|00000ae0| 65 72 72 20 3a 3d 20 52 | 65 73 45 72 72 6f 72 3b |err := R|esError;|
|00000af0| 0d 09 09 09 69 66 20 65 | 72 72 20 3d 20 6e 6f 45 |....if e|rr = noE|
|00000b00| 72 72 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |rr then |begin...|
|00000b10| 09 09 69 6e 73 74 61 6c | 6c 65 64 5f 76 65 72 73 |..instal|led_vers|
|00000b20| 69 6f 6e 20 3a 3d 20 47 | 65 74 56 65 72 73 69 6f |ion := G|etVersio|
|00000b30| 6e 46 72 6f 6d 52 65 73 | 46 69 6c 65 3b 0d 09 09 |nFromRes|File;...|
|00000b40| 09 09 43 6c 6f 73 65 52 | 65 73 46 69 6c 65 28 72 |..CloseR|esFile(r|
|00000b50| 65 66 29 3b 0d 09 09 09 | 65 6e 64 3b 20 28 2a 20 |ef);....|end; (* |
|00000b60| 69 66 20 2a 29 0d 09 09 | 65 6e 64 3b 0d 09 65 6e |if *)...|end;..en|
|00000b70| 64 3b 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 53 61 |d;...fun|ction Sa|
|00000b80| 76 65 43 6f 6d 70 6f 6e | 65 6e 74 54 6f 46 69 6c |veCompon|entToFil|
|00000b90| 65 20 28 66 73 73 3a 20 | 46 53 53 70 65 63 29 3a |e (fss: |FSSpec):|
|00000ba0| 20 4f 53 45 72 72 3b 0d | 09 09 76 61 72 0d 09 09 | OSErr;.|..var...|
|00000bb0| 09 65 72 72 3a 20 4f 53 | 45 72 72 3b 0d 09 09 09 |.err: OS|Err;....|
|00000bc0| 74 68 6e 67 3a 20 48 61 | 6e 64 6c 65 3b 0d 09 09 |thng: Ha|ndle;...|
|00000bd0| 09 72 72 65 66 3a 20 69 | 6e 74 65 67 65 72 3b 0d |.rref: i|nteger;.|
|00000be0| 09 09 09 6a 75 6e 6b 3a | 20 4f 53 45 72 72 3b 0d |...junk:| OSErr;.|
|00000bf0| 09 62 65 67 69 6e 0d 09 | 09 65 72 72 20 3a 3d 20 |.begin..|.err := |
|00000c00| 6e 6f 45 72 72 3b 0d 09 | 09 74 68 6e 67 20 3a 3d |noErr;..|.thng :=|
|00000c10| 20 47 65 74 52 65 73 6f | 75 72 63 65 28 27 54 68 | GetReso|urce('Th|
|00000c20| 4e 67 27 2c 20 31 32 38 | 29 3b 0d 09 09 69 66 20 |Ng', 128|);...if |
|00000c30| 74 68 6e 67 20 3d 20 6e | 69 6c 20 74 68 65 6e 20 |thng = n|il then |
|00000c40| 62 65 67 69 6e 0d 09 09 | 09 65 72 72 20 3a 3d 20 |begin...|.err := |
|00000c50| 72 65 73 4e 6f 74 46 6f | 75 6e 64 3b 0d 09 09 65 |resNotFo|und;...e|
|00000c60| 6e 64 3b 20 28 2a 20 69 | 66 20 2a 29 0d 09 09 69 |nd; (* i|f *)...i|
|00000c70| 66 20 65 72 72 20 3d 20 | 6e 6f 45 72 72 20 74 68 |f err = |noErr th|
|00000c80| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 48 4e 6f 50 |en begin|....HNoP|
|00000c90| 75 72 67 65 28 74 68 6e | 67 29 3b 0d 09 09 09 6a |urge(thn|g);....j|
|00000ca0| 75 6e 6b 20 3a 3d 20 48 | 43 72 65 61 74 65 28 66 |unk := H|Create(f|
|00000cb0| 73 73 2e 76 52 65 66 4e | 75 6d 2c 20 66 73 73 2e |ss.vRefN|um, fss.|
|00000cc0| 70 61 72 49 44 2c 20 66 | 73 73 2e 6e 61 6d 65 2c |parID, f|ss.name,|
|00000cd0| 20 49 43 63 72 65 61 74 | 6f 72 2c 20 27 74 68 6e | ICcreat|or, 'thn|
|00000ce0| 67 27 29 3b 0d 09 09 09 | 65 72 72 20 3a 3d 20 48 |g');....|err := H|
|00000cf0| 4f 70 65 6e 52 46 28 66 | 73 73 2e 76 52 65 66 4e |OpenRF(f|ss.vRefN|
|00000d00| 75 6d 2c 20 66 73 73 2e | 70 61 72 49 44 2c 20 66 |um, fss.|parID, f|
|00000d10| 73 73 2e 6e 61 6d 65 2c | 20 66 73 52 64 57 72 50 |ss.name,| fsRdWrP|
|00000d20| 65 72 6d 2c 20 72 72 65 | 66 29 3b 0d 09 09 09 69 |erm, rre|f);....i|
|00000d30| 66 20 65 72 72 20 3d 20 | 6e 6f 45 72 72 20 74 68 |f err = |noErr th|
|00000d40| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 09 65 72 72 |en begin|.....err|
|00000d50| 20 3a 3d 20 53 65 74 45 | 4f 46 28 72 72 65 66 2c | := SetE|OF(rref,|
|00000d60| 20 47 65 74 48 61 6e 64 | 6c 65 53 69 7a 65 28 74 | GetHand|leSize(t|
|00000d70| 68 6e 67 29 29 3b 0d 09 | 09 09 09 69 66 20 65 72 |hng));..|...if er|
|00000d80| 72 20 3d 20 6e 6f 45 72 | 72 20 74 68 65 6e 20 62 |r = noEr|r then b|
|00000d90| 65 67 69 6e 0d 09 09 09 | 09 09 65 72 72 20 3a 3d |egin....|..err :=|
|00000da0| 20 46 53 57 72 69 74 65 | 51 28 72 72 65 66 2c 20 | FSWrite|Q(rref, |
|00000db0| 47 65 74 48 61 6e 64 6c | 65 53 69 7a 65 28 74 68 |GetHandl|eSize(th|
|00000dc0| 6e 67 29 2c 20 74 68 6e | 67 5e 29 3b 0d 09 09 09 |ng), thn|g^);....|
|00000dd0| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|00000de0| 09 09 09 6a 75 6e 6b 20 | 3a 3d 20 46 53 43 6c 6f |...junk |:= FSClo|
|00000df0| 73 65 28 72 72 65 66 29 | 3b 0d 09 09 09 65 6e 64 |se(rref)|;....end|
|00000e00| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 09 48 50 |; (* if |*)....HP|
|00000e10| 75 72 67 65 28 74 68 6e | 67 29 3b 0d 09 09 65 6e |urge(thn|g);...en|
|00000e20| 64 3b 20 28 2a 20 69 66 | 20 2a 29 0d 09 09 55 70 |d; (* if| *)...Up|
|00000e30| 64 61 74 65 49 6e 73 74 | 61 6c 6c 65 64 56 65 72 |dateInst|alledVer|
|00000e40| 73 69 6f 6e 28 66 73 73 | 29 3b 20 7b 20 69 6e 20 |sion(fss|); { in |
|00000e50| 63 61 73 65 20 77 65 20 | 61 72 65 20 69 6e 73 74 |case we |are inst|
|00000e60| 61 6c 6c 69 6e 67 20 6f | 72 20 73 61 76 69 6e 67 |alling o|r saving|
|00000e70| 20 74 6f 20 74 68 65 20 | 69 6e 69 74 20 7d 0d 09 | to the |init }..|
|00000e80| 09 53 61 76 65 43 6f 6d | 70 6f 6e 65 6e 74 54 6f |.SaveCom|ponentTo|
|00000e90| 46 69 6c 65 20 3a 3d 20 | 65 72 72 3b 0d 09 65 6e |File := |err;..en|
|00000ea0| 64 3b 20 28 2a 20 53 61 | 76 65 43 6f 6d 70 6f 6e |d; (* Sa|veCompon|
|00000eb0| 65 6e 74 54 6f 46 69 6c | 65 20 2a 29 0d 0d 09 66 |entToFil|e *)...f|
|00000ec0| 75 6e 63 74 69 6f 6e 20 | 52 65 67 69 73 74 65 72 |unction |Register|
|00000ed0| 46 69 6c 65 20 28 66 73 | 73 3a 20 46 53 53 70 65 |File (fs|s: FSSpe|
|00000ee0| 63 29 3a 20 4f 53 45 72 | 72 3b 0d 09 09 76 61 72 |c): OSEr|r;...var|
|00000ef0| 0d 09 09 09 72 65 66 3a | 20 69 6e 74 65 67 65 72 |....ref:| integer|
|00000f00| 3b 0d 09 09 09 65 72 72 | 2c 20 65 72 72 32 3a 20 |;....err|, err2: |
|00000f10| 4f 53 45 72 72 3b 0d 09 | 09 09 72 65 73 75 6c 74 |OSErr;..|..result|
|00000f20| 3a 20 6c 6f 6e 67 69 6e | 74 3b 0d 09 62 65 67 69 |: longin|t;..begi|
|00000f30| 6e 0d 09 09 72 65 66 20 | 3a 3d 20 48 4f 70 65 6e |n...ref |:= HOpen|
|00000f40| 52 65 73 46 69 6c 65 28 | 66 73 73 2e 76 52 65 66 |ResFile(|fss.vRef|
|00000f50| 4e 75 6d 2c 20 66 73 73 | 2e 70 61 72 49 44 2c 20 |Num, fss|.parID, |
|00000f60| 66 73 73 2e 6e 61 6d 65 | 2c 20 66 73 52 64 50 65 |fss.name|, fsRdPe|
|00000f70| 72 6d 29 3b 0d 09 09 65 | 72 72 20 3a 3d 20 52 65 |rm);...e|rr := Re|
|00000f80| 73 45 72 72 6f 72 3b 0d | 09 09 69 66 20 65 72 72 |sError;.|..if err|
|00000f90| 20 3d 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 | = noErr| then be|
|00000fa0| 67 69 6e 0d 09 09 09 72 | 65 73 75 6c 74 20 3a 3d |gin....r|esult :=|
|00000fb0| 20 52 65 67 69 73 74 65 | 72 43 6f 6d 70 6f 6e 65 | Registe|rCompone|
|00000fc0| 6e 74 52 65 73 6f 75 72 | 63 65 46 69 6c 65 28 72 |ntResour|ceFile(r|
|00000fd0| 65 66 2c 20 72 65 67 69 | 73 74 65 72 43 6d 70 47 |ef, regi|sterCmpG|
|00000fe0| 6c 6f 62 61 6c 29 3b 0d | 09 09 09 69 66 20 72 65 |lobal);.|...if re|
|00000ff0| 73 75 6c 74 20 3e 20 30 | 20 74 68 65 6e 20 62 65 |sult > 0| then be|
|00001000| 67 69 6e 0d 09 09 09 09 | 65 72 72 20 3a 3d 20 6e |gin.....|err := n|
|00001010| 6f 45 72 72 3b 0d 09 09 | 09 65 6e 64 20 65 6c 73 |oErr;...|.end els|
|00001020| 65 20 62 65 67 69 6e 0d | 09 09 09 09 65 72 72 20 |e begin.|....err |
|00001030| 3a 3d 20 72 65 73 75 6c | 74 3b 0d 09 09 09 65 6e |:= resul|t;....en|
|00001040| 64 3b 20 28 2a 20 69 66 | 20 2a 29 0d 09 09 09 43 |d; (* if| *)....C|
|00001050| 6c 6f 73 65 52 65 73 46 | 69 6c 65 28 72 65 66 29 |loseResF|ile(ref)|
|00001060| 3b 0d 09 09 09 65 72 72 | 32 20 3a 3d 20 52 65 73 |;....err|2 := Res|
|00001070| 45 72 72 6f 72 3b 0d 09 | 09 09 69 66 20 65 72 72 |Error;..|..if err|
|00001080| 20 3d 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 | = noErr| then be|
|00001090| 67 69 6e 0d 09 09 09 09 | 65 72 72 20 3a 3d 20 65 |gin.....|err := e|
|000010a0| 72 72 32 3b 0d 09 09 09 | 65 6e 64 3b 20 28 2a 20 |rr2;....|end; (* |
|000010b0| 69 66 20 2a 29 0d 09 09 | 65 6e 64 3b 20 28 2a 20 |if *)...|end; (* |
|000010c0| 69 66 20 2a 29 0d 09 09 | 52 65 67 69 73 74 65 72 |if *)...|Register|
|000010d0| 46 69 6c 65 20 3a 3d 20 | 65 72 72 3b 0d 09 65 6e |File := |err;..en|
|000010e0| 64 3b 20 28 2a 20 52 65 | 67 69 73 74 65 72 46 69 |d; (* Re|gisterFi|
|000010f0| 6c 65 20 2a 29 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |le *)...|function|
|00001100| 20 53 61 76 65 49 43 43 | 6f 6d 70 6f 6e 65 6e 74 | SaveICC|omponent|
|00001110| 3a 20 4f 53 45 72 72 3b | 0d 09 09 76 61 72 0d 09 |: OSErr;|...var..|
|00001120| 09 09 65 72 72 3a 20 4f | 53 45 72 72 3b 0d 09 09 |..err: O|SErr;...|
|00001130| 09 66 73 73 3a 20 46 53 | 53 70 65 63 3b 0d 09 62 |.fss: FS|Spec;..b|
|00001140| 65 67 69 6e 0d 09 09 65 | 72 72 20 3a 3d 20 49 43 |egin...e|rr := IC|
|00001150| 53 74 61 6e 64 61 72 64 | 50 75 74 46 69 6c 65 28 |Standard|PutFile(|
|00001160| 47 65 74 41 53 74 72 69 | 6e 67 28 31 32 38 2c 20 |GetAStri|ng(128, |
|00001170| 31 33 29 2c 20 47 65 74 | 41 53 74 72 69 6e 67 28 |13), Get|AString(|
|00001180| 31 32 38 2c 20 31 32 29 | 2c 20 66 73 73 29 3b 0d |128, 12)|, fss);.|
|00001190| 09 09 69 66 20 65 72 72 | 20 3d 20 6e 6f 45 72 72 |..if err| = noErr|
|000011a0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 65 | then be|gin....e|
|000011b0| 72 72 20 3a 3d 20 53 61 | 76 65 43 6f 6d 70 6f 6e |rr := Sa|veCompon|
|000011c0| 65 6e 74 54 6f 46 69 6c | 65 28 66 73 73 29 3b 0d |entToFil|e(fss);.|
|000011d0| 09 09 65 6e 64 3b 0d 09 | 09 53 61 76 65 49 43 43 |..end;..|.SaveICC|
|000011e0| 6f 6d 70 6f 6e 65 6e 74 | 20 3a 3d 20 65 72 72 3b |omponent| := err;|
|000011f0| 0d 09 65 6e 64 3b 20 28 | 2a 20 53 61 76 65 49 43 |..end; (|* SaveIC|
|00001200| 43 6f 6d 70 6f 6e 65 6e | 74 20 2a 29 0d 0d 09 66 |Componen|t *)...f|
|00001210| 75 6e 63 74 69 6f 6e 20 | 4a 75 73 74 49 6e 73 74 |unction |JustInst|
|00001220| 61 6c 6c 49 43 43 6f 6d | 70 6f 6e 65 6e 74 3a 20 |allICCom|ponent: |
|00001230| 4f 53 45 72 72 3b 0d 09 | 09 76 61 72 0d 09 09 09 |OSErr;..|.var....|
|00001240| 65 72 72 3a 20 4f 53 45 | 72 72 3b 0d 09 09 09 77 |err: OSE|rr;....w|
|00001250| 68 65 72 65 3a 20 46 53 | 53 70 65 63 3b 0d 09 62 |here: FS|Spec;..b|
|00001260| 65 67 69 6e 0d 09 09 55 | 70 64 61 74 65 49 6e 73 |egin...U|pdateIns|
|00001270| 74 61 6c 6c 65 64 56 65 | 72 73 69 6f 6e 28 77 68 |talledVe|rsion(wh|
|00001280| 65 72 65 29 3b 0d 09 09 | 65 72 72 20 3a 3d 20 53 |ere);...|err := S|
|00001290| 61 76 65 43 6f 6d 70 6f | 6e 65 6e 74 54 6f 46 69 |aveCompo|nentToFi|
|000012a0| 6c 65 28 77 68 65 72 65 | 29 3b 0d 09 09 69 66 20 |le(where|);...if |
|000012b0| 65 72 72 20 3d 20 6e 6f | 45 72 72 20 74 68 65 6e |err = no|Err then|
|000012c0| 20 62 65 67 69 6e 0d 09 | 09 09 69 66 20 68 61 73 | begin..|..if has|
|000012d0| 5f 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 74 68 65 6e |_compone|nts then|
|000012e0| 20 62 65 67 69 6e 0d 09 | 09 09 09 65 72 72 20 3a | begin..|...err :|
|000012f0| 3d 20 52 65 67 69 73 74 | 65 72 46 69 6c 65 28 77 |= Regist|erFile(w|
|00001300| 68 65 72 65 29 3b 0d 09 | 09 09 65 6e 64 3b 0d 09 |here);..|..end;..|
|00001310| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|00001320| 09 4a 75 73 74 49 6e 73 | 74 61 6c 6c 49 43 43 6f |.JustIns|tallICCo|
|00001330| 6d 70 6f 6e 65 6e 74 20 | 3a 3d 20 65 72 72 3b 0d |mponent |:= err;.|
|00001340| 09 65 6e 64 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |.end;...|function|
|00001350| 20 49 6e 73 74 61 6c 6c | 49 43 43 6f 6d 70 6f 6e | Install|ICCompon|
|00001360| 65 6e 74 3a 20 4f 53 45 | 72 72 3b 0d 09 09 76 61 |ent: OSE|rr;...va|
|00001370| 72 0d 09 09 09 65 72 72 | 3a 20 4f 53 45 72 72 3b |r....err|: OSErr;|
|00001380| 0d 09 09 09 77 68 65 72 | 65 3a 20 46 53 53 70 65 |....wher|e: FSSpe|
|00001390| 63 3b 0d 09 09 09 70 72 | 6f 6d 70 74 3a 20 53 74 |c;....pr|ompt: St|
|000013a0| 72 32 35 35 3b 0d 09 09 | 09 6a 75 6e 6b 3a 20 69 |r255;...|.junk: i|
|000013b0| 6e 74 65 67 65 72 3b 0d | 09 09 09 72 65 67 69 73 |nteger;.|...regis|
|000013c0| 74 65 72 65 64 5f 76 65 | 72 73 69 6f 6e 3a 20 6c |tered_ve|rsion: l|
|000013d0| 6f 6e 67 49 6e 74 3b 0d | 09 62 65 67 69 6e 0d 09 |ongInt;.|.begin..|
|000013e0| 09 65 72 72 20 3a 3d 20 | 6e 6f 45 72 72 3b 0d 09 |.err := |noErr;..|
|000013f0| 09 72 65 67 69 73 74 65 | 72 65 64 5f 76 65 72 73 |.registe|red_vers|
|00001400| 69 6f 6e 20 3a 3d 20 30 | 3b 0d 09 09 55 70 64 61 |ion := 0|;...Upda|
|00001410| 74 65 49 6e 73 74 61 6c | 6c 65 64 56 65 72 73 69 |teInstal|ledVersi|
|00001420| 6f 6e 28 77 68 65 72 65 | 29 3b 0d 09 09 69 66 20 |on(where|);...if |
|00001430| 28 69 6e 73 74 61 6c 6c | 65 64 5f 76 65 72 73 69 |(install|ed_versi|
|00001440| 6f 6e 20 3e 20 30 29 20 | 74 68 65 6e 20 62 65 67 |on > 0) |then beg|
|00001450| 69 6e 0d 09 09 09 69 66 | 20 69 6e 73 74 61 6c 6c |in....if| install|
|00001460| 65 64 5f 76 65 72 73 69 | 6f 6e 20 3c 20 61 70 70 |ed_versi|on < app|
|00001470| 6c 69 63 61 74 69 6f 6e | 5f 76 65 72 73 69 6f 6e |lication|_version|
|00001480| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00001490| 70 72 6f 6d 70 74 20 3a | 3d 20 47 65 74 41 53 74 |prompt :|= GetASt|
|000014a0| 72 69 6e 67 28 31 32 38 | 2c 20 31 37 29 3b 0d 09 |ring(128|, 17);..|
|000014b0| 09 09 65 6e 64 20 65 6c | 73 65 20 69 66 20 69 6e |..end el|se if in|
|000014c0| 73 74 61 6c 6c 65 64 5f | 76 65 72 73 69 6f 6e 20 |stalled_|version |
|000014d0| 3c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 5f 76 65 |< applic|ation_ve|
|000014e0| 72 73 69 6f 6e 20 74 68 | 65 6e 20 62 65 67 69 6e |rsion th|en begin|
|000014f0| 0d 09 09 09 09 70 72 6f | 6d 70 74 20 3a 3d 20 47 |.....pro|mpt := G|
|00001500| 65 74 41 53 74 72 69 6e | 67 28 31 32 38 2c 20 31 |etAStrin|g(128, 1|
|00001510| 38 29 3b 0d 09 09 09 65 | 6e 64 20 65 6c 73 65 20 |8);....e|nd else |
|00001520| 69 66 20 69 6e 73 74 61 | 6c 6c 65 64 5f 76 65 72 |if insta|lled_ver|
|00001530| 73 69 6f 6e 20 3d 20 61 | 70 70 6c 69 63 61 74 69 |sion = a|pplicati|
|00001540| 6f 6e 5f 76 65 72 73 69 | 6f 6e 20 74 68 65 6e 20 |on_versi|on then |
|00001550| 62 65 67 69 6e 0d 09 09 | 09 09 70 72 6f 6d 70 74 |begin...|..prompt|
|00001560| 20 3a 3d 20 47 65 74 41 | 53 74 72 69 6e 67 28 31 | := GetA|String(1|
|00001570| 32 38 2c 20 31 39 29 3b | 0d 09 09 09 65 6e 64 3b |28, 19);|....end;|
|00001580| 20 28 2a 20 69 66 20 2a | 29 0d 09 09 09 50 61 72 | (* if *|)....Par|
|00001590| 61 6d 54 65 78 74 28 70 | 72 6f 6d 70 74 2c 20 27 |amText(p|rompt, '|
|000015a0| 27 2c 20 27 27 2c 20 27 | 27 29 3b 0d 09 09 09 49 |', '', '|');....I|
|000015b0| 6e 69 74 43 75 72 73 6f | 72 3b 0d 09 09 09 69 66 |nitCurso|r;....if|
|000015c0| 20 43 61 75 74 69 6f 6e | 41 6c 65 72 74 28 31 34 | Caution|Alert(14|
|000015d0| 35 2c 20 40 43 61 6e 63 | 65 6c 4d 6f 64 61 6c 46 |5, @Canc|elModalF|
|000015e0| 69 6c 74 65 72 29 20 3c | 3e 20 6f 6b 20 74 68 65 |ilter) <|> ok the|
|000015f0| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 65 72 72 20 |n begin.|....err |
|00001600| 3a 3d 20 75 73 65 72 43 | 61 6e 63 65 6c 65 64 45 |:= userC|anceledE|
|00001610| 72 72 3b 0d 09 09 09 65 | 6e 64 3b 20 28 2a 20 69 |rr;....e|nd; (* i|
|00001620| 66 20 2a 29 0d 09 09 65 | 6e 64 3b 20 28 2a 20 69 |f *)...e|nd; (* i|
|00001630| 66 20 2a 29 0d 09 09 69 | 66 20 65 72 72 20 3d 20 |f *)...i|f err = |
|00001640| 6e 6f 45 72 72 20 74 68 | 65 6e 20 62 65 67 69 6e |noErr th|en begin|
|00001650| 0d 09 09 09 65 72 72 20 | 3a 3d 20 4a 75 73 74 49 |....err |:= JustI|
|00001660| 6e 73 74 61 6c 6c 49 43 | 43 6f 6d 70 6f 6e 65 6e |nstallIC|Componen|
|00001670| 74 3b 0d 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |t;...end|; (* if |
|00001680| 2a 29 0d 09 09 69 66 20 | 65 72 72 20 3d 20 6e 6f |*)...if |err = no|
|00001690| 45 72 72 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |Err then| begin..|
|000016a0| 09 09 49 6e 69 74 43 75 | 72 73 6f 72 3b 0d 09 09 |..InitCu|rsor;...|
|000016b0| 09 50 61 72 61 6d 54 65 | 78 74 28 47 65 74 41 53 |.ParamTe|xt(GetAS|
|000016c0| 74 72 69 6e 67 28 31 32 | 38 2c 20 32 30 29 2c 20 |tring(12|8, 20), |
|000016d0| 27 27 2c 20 27 27 2c 20 | 27 27 29 3b 0d 09 09 09 |'', '', |'');....|
|000016e0| 6a 75 6e 6b 20 3a 3d 20 | 4e 6f 74 65 41 6c 65 72 |junk := |NoteAler|
|000016f0| 74 28 31 34 32 2c 20 6e | 69 6c 29 3b 0d 09 09 65 |t(142, n|il);...e|
|00001700| 6e 64 3b 20 28 2a 20 69 | 66 20 2a 29 0d 09 09 49 |nd; (* i|f *)...I|
|00001710| 6e 73 74 61 6c 6c 49 43 | 43 6f 6d 70 6f 6e 65 6e |nstallIC|Componen|
|00001720| 74 20 3a 3d 20 65 72 72 | 3b 0d 09 65 6e 64 3b 20 |t := err|;..end; |
|00001730| 28 2a 20 49 6e 73 74 61 | 6c 6c 49 43 43 6f 6d 70 |(* Insta|llICComp|
|00001740| 6f 6e 65 6e 74 20 2a 29 | 0d 0d 09 66 75 6e 63 74 |onent *)|...funct|
|00001750| 69 6f 6e 20 52 65 6d 6f | 76 65 49 43 43 6f 6d 70 |ion Remo|veICComp|
|00001760| 6f 6e 65 6e 74 3a 20 4f | 53 45 72 72 3b 0d 09 09 |onent: O|SErr;...|
|00001770| 76 61 72 0d 09 09 09 65 | 72 72 3a 20 4f 53 45 72 |var....e|rr: OSEr|
|00001780| 72 3b 0d 09 09 09 66 73 | 73 3a 20 46 53 53 70 65 |r;....fs|s: FSSpe|
|00001790| 63 3b 0d 09 09 09 6a 75 | 6e 6b 3a 20 69 6e 74 65 |c;....ju|nk: inte|
|000017a0| 67 65 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 65 72 |ger;..be|gin...er|
|000017b0| 72 20 3a 3d 20 6e 6f 45 | 72 72 3b 0d 09 09 55 70 |r := noE|rr;...Up|
|000017c0| 64 61 74 65 49 6e 73 74 | 61 6c 6c 65 64 56 65 72 |dateInst|alledVer|
|000017d0| 73 69 6f 6e 28 66 73 73 | 29 3b 0d 09 09 69 66 20 |sion(fss|);...if |
|000017e0| 69 6e 73 74 61 6c 6c 65 | 64 5f 76 65 72 73 69 6f |installe|d_versio|
|000017f0| 6e 20 3e 20 30 20 74 68 | 65 6e 20 62 65 67 69 6e |n > 0 th|en begin|
|00001800| 0d 09 09 09 65 72 72 20 | 3a 3d 20 48 44 65 6c 65 |....err |:= HDele|
|00001810| 74 65 28 66 73 73 2e 76 | 52 65 66 4e 75 6d 2c 20 |te(fss.v|RefNum, |
|00001820| 66 73 73 2e 70 61 72 49 | 44 2c 20 66 73 73 2e 6e |fss.parI|D, fss.n|
|00001830| 61 6d 65 29 3b 0d 09 09 | 65 6e 64 3b 0d 09 09 69 |ame);...|end;...i|
|00001840| 66 20 65 72 72 20 3d 20 | 6e 6f 45 72 72 20 74 68 |f err = |noErr th|
|00001850| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 69 66 20 47 |en begin|....if G|
|00001860| 65 74 52 65 67 69 73 74 | 65 72 65 64 56 65 72 73 |etRegist|eredVers|
|00001870| 69 6f 6e 20 3e 20 30 20 | 74 68 65 6e 20 62 65 67 |ion > 0 |then beg|
|00001880| 69 6e 0d 09 09 09 09 6a | 75 6e 6b 20 3a 3d 20 4e |in.....j|unk := N|
|00001890| 6f 74 65 41 6c 65 72 74 | 28 31 34 34 2c 20 6e 69 |oteAlert|(144, ni|
|000018a0| 6c 29 3b 0d 09 09 09 65 | 6e 64 3b 0d 09 09 65 6e |l);....e|nd;...en|
|000018b0| 64 3b 0d 09 09 55 70 64 | 61 74 65 49 6e 73 74 61 |d;...Upd|ateInsta|
|000018c0| 6c 6c 65 64 56 65 72 73 | 69 6f 6e 28 66 73 73 29 |lledVers|ion(fss)|
|000018d0| 3b 0d 09 09 52 65 6d 6f | 76 65 49 43 43 6f 6d 70 |;...Remo|veICComp|
|000018e0| 6f 6e 65 6e 74 20 3a 3d | 20 65 72 72 3b 0d 09 65 |onent :=| err;..e|
|000018f0| 6e 64 3b 0d 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |nd;...pr|ocedure |
|00001900| 41 64 6a 75 73 74 49 6e | 73 74 61 6c 4d 65 6e 75 |AdjustIn|stalMenu|
|00001910| 20 28 6d 65 6e 75 3a 20 | 69 6e 74 65 67 65 72 29 | (menu: |integer)|
|00001920| 3b 0d 09 62 65 67 69 6e | 0d 09 09 69 66 20 68 61 |;..begin|...if ha|
|00001930| 73 5f 63 6f 6d 70 6f 6e | 65 6e 74 73 20 74 68 65 |s_compon|ents the|
|00001940| 6e 20 62 65 67 69 6e 0d | 09 09 09 53 65 74 49 74 |n begin.|...SetIt|
|00001950| 65 6d 45 6e 61 62 6c 65 | 28 47 65 74 4d 65 6e 75 |emEnable|(GetMenu|
|00001960| 48 61 6e 64 6c 65 28 6d | 65 6e 75 29 2c 20 49 4d |Handle(m|enu), IM|
|00001970| 5f 49 6e 73 74 61 6c 6c | 2c 20 69 6e 73 74 61 6c |_Install|, instal|
|00001980| 6c 65 64 5f 76 65 72 73 | 69 6f 6e 20 3c 3e 20 61 |led_vers|ion <> a|
|00001990| 70 70 6c 69 63 61 74 69 | 6f 6e 5f 76 65 72 73 69 |pplicati|on_versi|
|000019a0| 6f 6e 29 3b 0d 09 09 65 | 6e 64 20 65 6c 73 65 20 |on);...e|nd else |
|000019b0| 62 65 67 69 6e 0d 09 09 | 09 53 65 74 49 74 65 6d |begin...|.SetItem|
|000019c0| 45 6e 61 62 6c 65 28 47 | 65 74 4d 65 6e 75 48 61 |Enable(G|etMenuHa|
|000019d0| 6e 64 6c 65 28 6d 65 6e | 75 29 2c 20 49 4d 5f 49 |ndle(men|u), IM_I|
|000019e0| 6e 73 74 61 6c 6c 2c 20 | 66 61 6c 73 65 29 3b 0d |nstall, |false);.|
|000019f0| 09 09 65 6e 64 3b 0d 09 | 09 53 65 74 49 74 65 6d |..end;..|.SetItem|
|00001a00| 45 6e 61 62 6c 65 28 47 | 65 74 4d 65 6e 75 48 61 |Enable(G|etMenuHa|
|00001a10| 6e 64 6c 65 28 6d 65 6e | 75 29 2c 20 49 4d 5f 52 |ndle(men|u), IM_R|
|00001a20| 65 6d 6f 76 65 2c 20 69 | 6e 73 74 61 6c 6c 65 64 |emove, i|nstalled|
|00001a30| 5f 76 65 72 73 69 6f 6e | 20 3e 20 30 29 3b 0d 09 |_version| > 0);..|
|00001a40| 65 6e 64 3b 0d 0d 09 70 | 72 6f 63 65 64 75 72 65 |end;...p|rocedure|
|00001a50| 20 44 6f 49 6e 73 74 61 | 6c 6c 4d 65 6e 75 20 28 | DoInsta|llMenu (|
|00001a60| 6d 65 6e 75 2c 20 69 74 | 65 6d 3a 20 69 6e 74 65 |menu, it|em: inte|
|00001a70| 67 65 72 29 3b 0d 09 62 | 65 67 69 6e 0d 09 09 6d |ger);..b|egin...m|
|00001a80| 65 6e 75 20 3a 3d 20 6d | 65 6e 75 3b 20 7b 20 55 |enu := m|enu; { U|
|00001a90| 6e 75 73 65 64 20 7d 0d | 09 09 63 61 73 65 20 69 |nused }.|..case i|
|00001aa0| 74 65 6d 20 6f 66 0d 09 | 09 09 49 4d 5f 49 6e 73 |tem of..|..IM_Ins|
|00001ab0| 74 61 6c 6c 3a 20 0d 09 | 09 09 09 44 69 73 70 6c |tall: ..|...Displ|
|00001ac0| 61 79 45 72 72 6f 72 28 | 61 63 49 6e 73 74 61 6c |ayError(|acInstal|
|00001ad0| 6c 43 6f 6d 70 6f 6e 65 | 6e 74 2c 20 49 6e 73 74 |lCompone|nt, Inst|
|00001ae0| 61 6c 6c 49 43 43 6f 6d | 70 6f 6e 65 6e 74 29 3b |allICCom|ponent);|
|00001af0| 0d 09 09 09 49 4d 5f 53 | 61 76 65 3a 20 0d 09 09 |....IM_S|ave: ...|
|00001b00| 09 09 44 69 73 70 6c 61 | 79 45 72 72 6f 72 28 61 |..Displa|yError(a|
|00001b10| 63 49 6e 73 74 61 6c 6c | 43 6f 6d 70 6f 6e 65 6e |cInstall|Componen|
|00001b20| 74 2c 20 53 61 76 65 49 | 43 43 6f 6d 70 6f 6e 65 |t, SaveI|CCompone|
|00001b30| 6e 74 29 3b 0d 09 09 09 | 49 4d 5f 52 65 6d 6f 76 |nt);....|IM_Remov|
|00001b40| 65 3a 20 0d 09 09 09 09 | 44 69 73 70 6c 61 79 45 |e: .....|DisplayE|
|00001b50| 72 72 6f 72 28 61 63 52 | 65 6d 6f 76 65 43 6f 6d |rror(acR|emoveCom|
|00001b60| 70 6f 6e 65 6e 74 2c 20 | 52 65 6d 6f 76 65 49 43 |ponent, |RemoveIC|
|00001b70| 43 6f 6d 70 6f 6e 65 6e | 74 29 3b 0d 09 09 09 6f |Componen|t);....o|
|00001b80| 74 68 65 72 77 69 73 65 | 0d 09 09 09 09 3b 0d 09 |therwise|.....;..|
|00001b90| 09 65 6e 64 3b 20 28 2a | 20 63 61 73 65 20 2a 29 |.end; (*| case *)|
|00001ba0| 0d 09 65 6e 64 3b 0d 0d | 09 66 75 6e 63 74 69 6f |..end;..|.functio|
|00001bb0| 6e 20 43 68 65 63 6b 49 | 43 55 73 61 67 65 56 65 |n CheckI|CUsageVe|
|00001bc0| 72 73 69 6f 6e 3a 20 4f | 53 45 72 72 3b 0d 09 09 |rsion: O|SErr;...|
|00001bd0| 76 61 72 0d 09 09 09 65 | 72 72 2c 20 65 72 72 32 |var....e|rr, err2|
|00001be0| 3a 20 4f 53 45 72 72 3b | 0d 09 09 09 63 6f 6d 70 |: OSErr;|....comp|
|00001bf0| 6f 6e 65 6e 74 5f 69 6e | 73 74 61 6e 63 65 3a 20 |onent_in|stance: |
|00001c00| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00001c10| 65 3b 0d 09 09 09 69 6e | 73 74 3a 20 49 43 49 6e |e;....in|st: ICIn|
|00001c20| 73 74 61 6e 63 65 3b 0d | 09 62 65 67 69 6e 0d 09 |stance;.|.begin..|
|00001c30| 09 65 72 72 20 3a 3d 20 | 49 43 4d 61 70 45 72 72 |.err := |ICMapErr|
|00001c40| 28 49 43 53 74 61 72 74 | 28 69 6e 73 74 2c 20 49 |(ICStart|(inst, I|
|00001c50| 43 63 72 65 61 74 6f 72 | 29 29 3b 0d 09 09 69 66 |Ccreator|));...if|
|00001c60| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 74 68 65 | err = n|oErr the|
|00001c70| 6e 20 62 65 67 69 6e 0d | 09 09 09 65 72 72 20 3a |n begin.|...err :|
|00001c80| 3d 20 49 43 4d 61 70 45 | 72 72 28 49 43 47 65 74 |= ICMapE|rr(ICGet|
|00001c90| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00001ca0| 65 28 69 6e 73 74 2c 20 | 63 6f 6d 70 6f 6e 65 6e |e(inst, |componen|
|00001cb0| 74 5f 69 6e 73 74 61 6e | 63 65 29 29 3b 0d 09 09 |t_instan|ce));...|
|00001cc0| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 45 72 72 20 |.if err |= noErr |
|00001cd0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 69 |then beg|in.....i|
|00001ce0| 66 20 42 41 4e 44 28 47 | 65 74 43 6f 6d 70 6f 6e |f BAND(G|etCompon|
|00001cf0| 65 6e 74 56 65 72 73 69 | 6f 6e 28 63 6f 6d 70 6f |entVersi|on(compo|
|00001d00| 6e 65 6e 74 5f 69 6e 73 | 74 61 6e 63 65 29 2c 20 |nent_ins|tance), |
|00001d10| 24 46 46 46 46 30 30 30 | 30 29 20 3c 20 42 41 4e |$FFFF000|0) < BAN|
|00001d20| 44 28 69 6e 74 65 72 6e | 65 74 43 6f 6e 66 69 67 |D(intern|etConfig|
|00001d30| 75 72 61 74 69 6f 6e 43 | 6f 6d 70 6f 6e 65 6e 74 |urationC|omponent|
|00001d40| 49 6e 74 65 72 66 61 63 | 65 56 65 72 73 69 6f 6e |Interfac|eVersion|
|00001d50| 2c 20 24 46 46 46 46 30 | 30 30 30 29 20 74 68 65 |, $FFFF0|000) the|
|00001d60| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 09 65 72 72 |n begin.|.....err|
|00001d70| 20 3a 3d 20 75 6e 69 6d | 70 45 72 72 3b 0d 09 09 | := unim|pErr;...|
|00001d80| 09 09 65 6e 64 3b 0d 09 | 09 09 65 6e 64 20 65 6c |..end;..|..end el|
|00001d90| 73 65 20 62 65 67 69 6e | 0d 09 09 09 09 65 72 72 |se begin|.....err|
|00001da0| 20 3a 3d 20 6e 6f 45 72 | 72 3b 20 7b 20 77 65 20 | := noEr|r; { we |
|00001db0| 77 6f 72 6b 20 66 69 6e | 65 20 77 69 74 68 6f 75 |work fin|e withou|
|00001dc0| 74 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2c 20 77 |t a comp|onent, w|
|00001dd0| 65 20 6a 75 73 74 20 63 | 61 6e 27 74 20 64 65 61 |e just c|an't dea|
|00001de0| 6c 20 77 69 74 68 20 61 | 6e 20 6f 6c 64 20 63 6f |l with a|n old co|
|00001df0| 6d 70 6f 6e 65 6e 74 20 | 7d 0d 09 09 09 65 6e 64 |mponent |}....end|
|00001e00| 3b 0d 09 09 09 65 72 72 | 32 20 3a 3d 20 49 43 4d |;....err|2 := ICM|
|00001e10| 61 70 45 72 72 28 49 43 | 53 74 6f 70 28 69 6e 73 |apErr(IC|Stop(ins|
|00001e20| 74 29 29 3b 0d 09 09 09 | 69 66 20 65 72 72 20 3d |t));....|if err =|
|00001e30| 20 6e 6f 45 72 72 20 74 | 68 65 6e 20 62 65 67 69 | noErr t|hen begi|
|00001e40| 6e 0d 09 09 09 09 65 72 | 72 20 3a 3d 20 65 72 72 |n.....er|r := err|
|00001e50| 32 3b 0d 09 09 09 65 6e | 64 3b 0d 09 09 65 6e 64 |2;....en|d;...end|
|00001e60| 3b 0d 09 09 43 68 65 63 | 6b 49 43 55 73 61 67 65 |;...Chec|kICUsage|
|00001e70| 56 65 72 73 69 6f 6e 20 | 3a 3d 20 65 72 72 3b 0d |Version |:= err;.|
|00001e80| 09 65 6e 64 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |.end;...|function|
|00001e90| 20 49 6e 69 74 69 61 6c | 69 7a 65 43 6f 6d 70 6f | Initial|izeCompo|
|00001ea0| 6e 65 6e 74 49 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |nentInst|allation|
|00001eb0| 3a 20 4f 53 45 72 72 3b | 0d 09 09 76 61 72 0d 09 |: OSErr;|...var..|
|00001ec0| 09 09 66 73 73 3a 20 46 | 53 53 70 65 63 3b 0d 09 |..fss: F|SSpec;..|
|00001ed0| 09 09 61 3a 20 69 6e 74 | 65 67 65 72 3b 0d 09 09 |..a: int|eger;...|
|00001ee0| 09 65 72 72 3a 20 4f 53 | 45 72 72 3b 0d 09 62 65 |.err: OS|Err;..be|
|00001ef0| 67 69 6e 0d 09 09 65 72 | 72 20 3a 3d 20 6e 6f 45 |gin...er|r := noE|
|00001f00| 72 72 3b 0d 09 09 61 70 | 70 6c 69 63 61 74 69 6f |rr;...ap|plicatio|
|00001f10| 6e 5f 76 65 72 73 69 6f | 6e 20 3a 3d 20 6c 6f 6e |n_versio|n := lon|
|00001f20| 67 49 6e 74 28 61 70 70 | 5f 76 65 72 73 69 6f 6e |gInt(app|_version|
|00001f30| 2e 6e 75 6d 65 72 69 63 | 56 65 72 73 69 6f 6e 29 |.numeric|Version)|
|00001f40| 3b 0d 09 09 55 70 64 61 | 74 65 49 6e 73 74 61 6c |;...Upda|teInstal|
|00001f50| 6c 65 64 56 65 72 73 69 | 6f 6e 28 66 73 73 29 3b |ledVersi|on(fss);|
|00001f60| 0d 09 09 69 66 20 68 61 | 73 5f 63 6f 6d 70 6f 6e |...if ha|s_compon|
|00001f70| 65 6e 74 73 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |ents the|n begin.|
|00001f80| 09 09 09 69 66 20 28 69 | 6e 73 74 61 6c 6c 65 64 |...if (i|nstalled|
|00001f90| 5f 76 65 72 73 69 6f 6e | 20 3c 20 61 70 70 6c 69 |_version| < appli|
|00001fa0| 63 61 74 69 6f 6e 5f 76 | 65 72 73 69 6f 6e 29 20 |cation_v|ersion) |
|00001fb0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 49 |then beg|in.....I|
|00001fc0| 6e 69 74 43 75 72 73 6f | 72 3b 0d 09 09 09 09 69 |nitCurso|r;.....i|
|00001fd0| 66 20 69 6e 73 74 61 6c | 6c 65 64 5f 76 65 72 73 |f instal|led_vers|
|00001fe0| 69 6f 6e 20 3e 20 30 20 | 74 68 65 6e 20 62 65 67 |ion > 0 |then beg|
|00001ff0| 69 6e 0d 09 09 09 09 09 | 61 20 3a 3d 20 4e 6f 74 |in......|a := Not|
|00002000| 65 41 6c 65 72 74 28 31 | 34 36 2c 20 40 43 61 6e |eAlert(1|46, @Can|
|00002010| 63 65 6c 4d 6f 64 61 6c | 46 69 6c 74 65 72 29 3b |celModal|Filter);|
|00002020| 0d 09 09 09 09 09 69 66 | 20 61 20 3c 3e 20 6f 6b |......if| a <> ok|
|00002030| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00002040| 09 09 65 72 72 20 3a 3d | 20 75 73 65 72 43 61 6e |..err :=| userCan|
|00002050| 63 65 6c 65 64 45 72 72 | 3b 0d 09 09 09 09 09 65 |celedErr|;......e|
|00002060| 6e 64 3b 0d 09 09 09 09 | 65 6e 64 20 65 6c 73 65 |nd;.....|end else|
|00002070| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 50 61 72 61 | begin..|....Para|
|00002080| 6d 54 65 78 74 28 47 65 | 74 41 53 74 72 69 6e 67 |mText(Ge|tAString|
|00002090| 28 31 32 38 2c 20 38 29 | 2c 20 27 27 2c 20 27 27 |(128, 8)|, '', ''|
|000020a0| 2c 20 27 27 29 3b 0d 09 | 09 09 09 09 61 20 3a 3d |, '');..|....a :=|
|000020b0| 20 4e 6f 74 65 41 6c 65 | 72 74 28 31 34 31 2c 20 | NoteAle|rt(141, |
|000020c0| 40 43 61 6e 63 65 6c 4d | 6f 64 61 6c 46 69 6c 74 |@CancelM|odalFilt|
|000020d0| 65 72 29 3b 0d 09 09 09 | 09 65 6e 64 3b 0d 09 09 |er);....|.end;...|
|000020e0| 09 09 69 66 20 61 20 3d | 20 6f 6b 20 74 68 65 6e |..if a =| ok then|
|000020f0| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 65 72 72 20 | begin..|....err |
|00002100| 3a 3d 20 4a 75 73 74 49 | 6e 73 74 61 6c 6c 49 43 |:= JustI|nstallIC|
|00002110| 43 6f 6d 70 6f 6e 65 6e | 74 3b 0d 09 09 09 09 09 |Componen|t;......|
|00002120| 44 69 73 70 6c 61 79 45 | 72 72 6f 72 28 61 63 49 |DisplayE|rror(acI|
|00002130| 6e 73 74 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 2c |nstallCo|mponent,|
|00002140| 20 65 72 72 29 3b 0d 09 | 09 09 09 09 69 66 20 65 | err);..|....if e|
|00002150| 72 72 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |rr = noE|rr then |
|00002160| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 65 72 72 20 |begin...|....err |
|00002170| 3a 3d 20 43 68 65 63 6b | 49 43 55 73 61 67 65 56 |:= Check|ICUsageV|
|00002180| 65 72 73 69 6f 6e 3b 0d | 09 09 09 09 09 09 69 66 |ersion;.|......if|
|00002190| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 74 68 65 | err = n|oErr the|
|000021a0| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 09 09 09 49 |n begin.|.......I|
|000021b0| 6e 69 74 43 75 72 73 6f | 72 3b 0d 09 09 09 09 09 |nitCurso|r;......|
|000021c0| 09 09 50 61 72 61 6d 54 | 65 78 74 28 47 65 74 41 |..ParamT|ext(GetA|
|000021d0| 53 74 72 69 6e 67 28 31 | 32 38 2c 20 32 30 29 2c |String(1|28, 20),|
|000021e0| 20 27 27 2c 20 27 27 2c | 20 27 27 29 3b 0d 09 09 | '', '',| '');...|
|000021f0| 09 09 09 09 09 61 20 3a | 3d 20 4e 6f 74 65 41 6c |.....a :|= NoteAl|
|00002200| 65 72 74 28 31 34 32 2c | 20 6e 69 6c 29 3b 0d 09 |ert(142,| nil);..|
|00002210| 09 09 09 09 09 65 6e 64 | 20 65 6c 73 65 20 62 65 |.....end| else be|
|00002220| 67 69 6e 0d 09 09 09 09 | 09 09 09 49 6e 69 74 43 |gin.....|...InitC|
|00002230| 75 72 73 6f 72 3b 0d 09 | 09 09 09 09 09 09 50 61 |ursor;..|......Pa|
|00002240| 72 61 6d 54 65 78 74 28 | 47 65 74 41 53 74 72 69 |ramText(|GetAStri|
|00002250| 6e 67 28 31 32 38 2c 20 | 32 36 29 2c 20 27 27 2c |ng(128, |26), '',|
|00002260| 20 27 27 2c 20 27 27 29 | 3b 0d 09 09 09 09 09 09 | '', '')|;.......|
|00002270| 09 61 20 3a 3d 20 4e 6f | 74 65 41 6c 65 72 74 28 |.a := No|teAlert(|
|00002280| 31 34 32 2c 20 6e 69 6c | 29 3b 0d 09 09 09 09 09 |142, nil|);......|
|00002290| 09 09 65 72 72 20 3a 3d | 20 75 73 65 72 43 61 6e |..err :=| userCan|
|000022a0| 63 65 6c 65 64 45 72 72 | 3b 0d 09 09 09 09 09 09 |celedErr|;.......|
|000022b0| 65 6e 64 3b 0d 09 09 09 | 09 09 65 6e 64 3b 0d 09 |end;....|..end;..|
|000022c0| 09 09 09 65 6e 64 3b 0d | 09 09 09 65 6e 64 3b 0d |...end;.|...end;.|
|000022d0| 09 09 65 6e 64 3b 0d 7b | 20 45 6e 73 75 72 65 20 |..end;.{| Ensure |
|000022e0| 69 6e 76 61 72 69 61 6e | 74 20 74 68 61 74 20 77 |invarian|t that w|
|000022f0| 65 20 61 72 65 20 75 73 | 69 6e 67 20 74 68 65 20 |e are us|ing the |
|00002300| 67 6c 75 65 2c 20 6f 72 | 20 77 65 20 61 72 65 20 |glue, or| we are |
|00002310| 75 73 69 6e 67 20 74 68 | 65 20 63 75 72 72 65 6e |using th|e curren|
|00002320| 74 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |t versio|n of the|
|00002330| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 7d 0d 09 09 69 | compone|nt }...i|
|00002340| 66 20 65 72 72 20 3d 20 | 6e 6f 45 72 72 20 74 68 |f err = |noErr th|
|00002350| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 65 72 72 20 |en begin|....err |
|00002360| 3a 3d 20 43 68 65 63 6b | 49 43 55 73 61 67 65 56 |:= Check|ICUsageV|
|00002370| 65 72 73 69 6f 6e 3b 0d | 09 09 65 6e 64 3b 0d 09 |ersion;.|..end;..|
|00002380| 09 49 6e 69 74 69 61 6c | 69 7a 65 43 6f 6d 70 6f |.Initial|izeCompo|
|00002390| 6e 65 6e 74 49 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |nentInst|allation|
|000023a0| 20 3a 3d 20 65 72 72 3b | 0d 09 65 6e 64 3b 0d 0d | := err;|..end;..|
|000023b0| 65 6e 64 2e 20 28 2a 20 | 49 43 49 6e 73 74 61 6c |end. (* |ICInstal|
|000023c0| 6c 20 2a 29 0d 74 65 6d | 70 5f 69 6e 73 74 61 6e |l *).tem|p_instan|
|000023d0| 63 65 3a 20 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |ce: Comp|onentIns|
|000023e0| 74 61 6e 63 65 3b 0d 74 | 65 6d 70 5f 69 6e 73 74 |tance;.t|emp_inst|
|000023f0| 61 6e 63 65 20 3a 3d 20 | 4f 70 65 6e 44 65 66 61 |ance := |OpenDefa|
|00002400| 75 6c 74 43 6f 6d 70 6f | 6e 65 6e 74 28 69 6e 74 |ultCompo|nent(int|
|00002410| 65 72 6e 65 74 43 6f 6e | 66 69 67 75 72 61 74 69 |ernetCon|figurati|
|00002420| 6f 6e 43 6f 6d 70 6f 6e | 65 6e 74 54 79 70 65 2c |onCompon|entType,|
|00002430| 20 69 6e 74 65 72 6e 65 | 74 43 6f 6e 66 69 67 75 | interne|tConfigu|
|00002440| 72 61 74 69 6f 6e 43 6f | 6d 70 6f 6e 65 6e 74 53 |rationCo|mponentS|
|00002450| 75 62 54 79 70 65 29 3b | 0d 69 66 20 74 65 6d 70 |ubType);|.if temp|
|00002460| 5f 69 6e 73 74 61 6e 63 | 65 20 3c 3e 20 6e 69 6c |_instanc|e <> nil|
|00002470| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 6a 75 6e | then be|gin..jun|
|00002480| 6b 20 3a 3d 20 43 6c 6f | 73 65 43 6f 6d 70 6f 6e |k := Clo|seCompon|
|00002490| 65 6e 74 28 74 65 6d 70 | 5f 69 6e 73 74 61 6e 63 |ent(temp|_instanc|
|000024a0| 65 29 3b 0d 65 6e 64 3b | 00 00 00 00 00 00 00 00 |e);.end;|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002510| 74 73 3b 0d 0d 69 6e 74 | 65 72 66 61 63 65 0d 0d |ts;..int|erface..|
|00002520| 09 75 73 65 73 0d 09 09 | 49 43 57 69 6e 64 6f 77 |.uses...|ICWindow|
|00002530| 0b 49 43 49 6e 73 74 61 | 6c 6c 2e 70 02 00 00 00 |.ICInsta|ll.p....|
|00002540| 54 45 58 54 43 57 49 45 | 00 00 00 9c 00 c0 00 00 |TEXTCWIE|........|
|00002550| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 9c 00 c0 |..TEXTCW|IE......|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 aa a9 0e e7 00 00 | 24 28 00 00 01 9a 6e 63 |........|$(....nc|
|00002580| 74 69 6f 6e 20 57 68 61 | 74 46 6c 75 73 68 46 53 |tion Wha|tFlushFS|
|00002590| 53 70 65 63 20 28 77 74 | 3a 20 57 69 6e 64 6f 77 |Spec (wt|: Window|
|000025a0| 54 79 70 65 3b 20 69 74 | 65 6d 3a 20 69 6e 74 65 |Type; it|em: inte|
|000025b0| 67 65 72 29 3a 20 4f 53 | 45 72 72 3b 0d 09 66 75 |ger): OS|Err;..fu|
|000025c0| 6e 63 74 69 6f 6e 20 57 | 68 61 74 43 6c 69 63 6b |nction W|hatClick|
|000025d0| 46 53 53 70 65 63 20 28 | 77 74 3a 20 57 69 6e 64 |FSSpec (|wt: Wind|
|000025e0| 6f 77 54 79 70 65 3b 20 | 69 74 65 6d 3a 20 69 6e |owType; |item: in|
|000025f0| 74 65 67 65 72 3b 20 65 | 72 3a 20 65 76 65 6e 74 |teger; e|r: event|
|00002600| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00002610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002620| 00 00 00 00 00 00 00 03 | 00 02 00 3e 00 04 01 cd |........|...>....|
|00002630| 02 63 00 3e 00 04 01 cd | 02 63 ad b2 d4 fd 00 00 |.c.>....|.c......|
|00002640| 1a 22 00 00 1a 22 00 00 | 18 33 01 00 00 00 00 04 |."..."..|.3......|
|00002650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00002660| 00 00 00 46 00 68 16 38 | 09 30 00 00 00 1c 00 46 |...F.h.8|.0.....F|
|00002670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+